package com.sugar.subscribe.course.module.business.controller.admin.coach.vo;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import javax.validation.constraints.*;

@Schema(description = "管理后台 - 教练信息新增/修改 Request VO")
@Data
public class CoachAmountUpdateReqVO {

    @Schema(description = "ID", requiredMode = Schema.RequiredMode.REQUIRED, example = "28633")
    private Long id;

    @Schema(description = "余额（单位分）", requiredMode = Schema.RequiredMode.REQUIRED, example = "9632")
    @Min(value = 0, message = "余额不能低于 0")
    private Integer balance;

    @Schema(description = "累计收益（单位分）", requiredMode = Schema.RequiredMode.REQUIRED, example = "9632")
    @Min(value = 0, message = "累计收益不能低于 0")
    private Integer totalEarnings;
}